<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>Test_POR_14_04_001_CutPasteNodeToTheSamePlace</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Test_POR_14_04_001_CutPasteNodeToTheSamePlace</td></tr>
</thead><tbody>
<tr>
	<td>open</td>
	<td>/portal/public/classic/</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Login portal--</td>
	<td></td>
</tr>
<tr>
	<td>windowMaximize</td>
	<td></td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Sign in</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>username</td>
	<td></td>
</tr>
<tr>
	<td>type</td>
	<td>username</td>
	<td>root</td>
</tr>
<tr>
	<td>type</td>
	<td>password</td>
	<td>gtn</td>
</tr>
<tr>
	<td>clickAt</td>
	<td>//div[@id='UIPortalLoginFormAction']/div/div/div/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Open Navigation Management pop-up --</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Site</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Edit Navigation</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Cut node--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']</td>
	<td></td>
</tr>
<tr>
	<td>mouseDownRight</td>
	<td>//a[@class='NodeIcon DefaultPageIcon NodeSelected' and @title='Home']</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Cut Node</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Cut Node</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Paste node to same place--</td>
	<td></td>
</tr>
<tr>
	<td>componentExoContextMenu</td>
	<td>//div[@id='UINavigationNodeSelector']/div/div/div/div[2]/div/div/div</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>//div[@class='UIContextMenuContainer']/div[2]/div/div/div[7]/a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>--Verify text Message--</td>
	<td></td>
</tr>
<tr>
	<td>waitForTextPresent</td>
	<td>This node name already exists</td>
	<td></td>
</tr>
<tr>
	<td>verifyTextPresent</td>
	<td>This node name already exists</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//a</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>//div[@id='UIPortalApplication']/div[@class='UIPopupWindow UIDragObject']//a</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>//div[@id='UINavigationManagement']//table[@class='ActionContainer']//tr//td[2]//a</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>//div[@id='UINavigationManagement']//table[@class='ActionContainer']//tr//td[2]//a</td>
	<td></td>
</tr>
<tr>
	<td>echo</td>
	<td>-- Sign out--</td>
	<td></td>
</tr>
<tr>
	<td>waitForElementPresent</td>
	<td>link=Sign out</td>
	<td></td>
</tr>
<tr>
	<td>clickAt</td>
	<td>link=Sign out</td>
	<td></td>
</tr>

</tbody></table>
</body>
</html>
